package edu.gznu.ics.fast.pulsar.controller.prestoacc.taskCtrlController.computeTask;

import edu.gznu.ics.fast.pulsar.model.vo.user.TdUserVO;
import org.springframework.stereotype.Controller;
import org.springframework.validation.BindingResult;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.validation.Valid;

/**
 * Created by fei-zyx on 2016/10/11.
 */

@Controller

@RequestMapping("/cNode")
public class ComputeNodeController {
    @RequestMapping(value = {"/checkNode"})
    public String checkNode(@ModelAttribute @Valid TdUserVO tdUserVO, BindingResult result) {
        //   computeTaskService.findTaskListByUser();
        //  computeTaskService.addNewTaskList();
        return "success";
    }

    @RequestMapping(value = {"/staPrestoClient"})
    public String staPrestoClient(@ModelAttribute @Valid TdUserVO tdUserVO, BindingResult result) {
        //computeTaskService.findTaskListByUser();
        //  computeTaskService.addNewTaskList();
        return "success";
    }

    @RequestMapping(value = {"/endPrestoClient"})
    public String endPrestoClient(@ModelAttribute @Valid TdUserVO tdUserVO, BindingResult result) {
        // computeTaskService.findTaskListByUser();
        //  computeTaskService.addNewTaskList();
        return "success";
    }

}
